package com.mew.common.rest.gold;

import com.zebra.common.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CustomersMessage  {
    private Long userId;
    private String gid;
    private Integer headPath;
    private String nickName;
    private String phone; //手機
    private String email; //郵箱
    private String line; //Line

    public void write(ByteBuf b) {
        ByteBufUtils.writeLong(b,userId);
        ByteBufUtils.writeString(b,gid);
        ByteBufUtils.writeInt(b,headPath);
        ByteBufUtils.writeString(b,nickName);
        ByteBufUtils.writeString(b,phone);
        ByteBufUtils.writeString(b,email);
        ByteBufUtils.writeString(b,line);
    }
}
